package com.Hsu.demo.controller;

import com.Hsu.demo.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Hsu琛君珩
 * @ClassName:HelloController
 * @date 2024-01-16
 * @apiNote
 * @Version: v1.0
 */

@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }

    @MyAspect
    @RequestMapping("h1")
    public String h1(){
        return "h1";
    }

    @RequestMapping("h2")
    public String h2(){
        return "h2";
    }
}